<template>
	<view class="modal" v-if="globalModal.visible">
		<view class="modal-content"> 全局弹窗 </view>
	</view>
</template>

<script>
	import {
		mapState
	} from "vuex";
	export default {
		computed: {
			...mapState(["globalModal"]),
		},
		methods: {},
	};
</script>

<style scoped>
	.modal {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.6);
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 999;
	}

	.modal-content {
		background-color: #ffffff;
		border-radius: 4px;
		overflow: hidden;
		padding: 20px;
	}
</style>